﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace FwProject.ShoppingMall.Shop
{
    /// <summary>
    /// 商品sku
    /// </summary>
    [Table("ShopProductSku")]
    public class ShopProductSku: FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 组合spcevalue组合id
        /// </summary>
        [Required]
        public string SpaceValueid { get; set; }

        public string SpaceValueName { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public Guid ShopProductid { get; set; }
        /// <summary>
        /// 销售价
        /// </summary>
        [Required]
        public decimal SpceMarketPrice { get; set; } = 0m;
        /// <summary>
        /// 成本价
        /// </summary>
        [Required]
        public decimal SpceCostPrice { get; set; } = 0m;
        /// <summary>
        /// 重量
        /// </summary>
        [Required]
        public float SpceWeight { get; set; } = 0;
    }
}
